<template>
  <div class="wude">
    <div class="hang">
      <div class="h1">常用工具</div>
      <div class="h2">
        <div class="div1" v-for="(item, index) in nei" :key="index">
          <div :class="{ iconfont: true, [item.icon]: true }"></div>
          <div>{{ item.text }}</div>
        </div>
      </div>
    </div>
    <div class="hang2">
      <div class="hz1">
        <div class="zx2">邀好友赚现金</div>
        <div class="zx3">最高得15元</div>
        <div class="zx4"><span class="iconfont icon-31"></span></div>
        <div>
          <span class="zx11">去邀请</span>
          <span class="zx12">查佣金</span>
        </div>
      </div>
      <div class="hz1">
        <div class="zx2">饿了么服务号</div>
        <div class="zx3">关注后及时接收系统通知</div>
        <div class="zx4"><span class="iconfont icon-31"></span></div>
        <div>
          <span class="zx1">立即关注</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      nei: [
        { id: 1, icon: "icon-infenicon18", text: "我的地址" },
        { id: 1, icon: "icon-kefu", text: "我的客服" },
        { id: 1, icon: "icon-shoucang", text: "店铺关注" },
        { id: 1, icon: "icon-28", text: "评价有礼" },
      ],
    };
  },
};
</script>

<style scoped>
.wude {
  padding: 0 20px;
  background-color: #f5f5f5;
  height: 300px;
}
.hang {
  height: 100px;
  border-radius: 10px;
  background-color: white;
  padding: 10px;
}
.h1 {
  font-weight: bold;
  font-size: 20px;
}
.h2 {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin-top: 10px;
  font-size: 18px;
}
.iconfont {
  font-size: 22px;
}
.hz1{
  width: 160px;
  height: 200px;
  border-radius: 15px;
  background-color: white;
  margin-top: 5px;
  padding: 10px;
}
.zx2{
  font-size: 18px;
  font-weight: bold;
}
.zx3{
  font-size: 14px;
 color: rgb(197, 193, 193);
}
.icon-31{
  font-size: 30px;
  color: red;
}
.zx4{
  width: 170px;
  height: 80px;
  background-color: antiquewhite;
  text-align: center;
  line-height: 80px;
}
.zx11,.zx12,.zx1{
  display: inline-block;
  width: 60px;
  height: 30px;
  border: 1px solid;
  border-radius: 15px;
  text-align: center;
  line-height: 30px;
  margin-top: 5px;
}
.zx11{
  margin-right: 35px;
}
.zx1{
  width: 80px;
  margin-left: 35px;
}
.hang2{
  display: flex;
  justify-content: space-between;
}
</style>